import { createRouter,createWebHistory,createWebHashHistory } from "vue-router";
import fileOne from "../test/fileOne.vue"; // 测试页面
import fileTwo from "../test/fileTwo.vue";

const routes = [
    {
        path: '/',
        component:fileOne
    },
    {
        path: '/file2',
        component:fileTwo
    }
]

const router = createRouter({
    history:createWebHashHistory(),
    routes,
})

export default router; // 默认导出router对象